﻿<div class="mainBody" style="padding-bottom:3px;">
	<div class="adminMainTitle">
		<div class="adminSidebarTitleInternal">_{siteLogList}</div>
	</div>
	<div class="adminMainPanel " style="padding:5px 10px;">
	

<script type="text/javascript">
<!--

_run( function() {


	function initFilter() {
		$('#selectFilter').val( wojilu.tool.getQuery( 'filter') );
		
		var qtype = wojilu.tool.getQuery( 'queryType');
		if( wojilu.str.isNull( qtype ) ) qtype = 'user';
		$('#qtype').val( qtype );
	}
	
	initFilter();

	$('#selectFilter').change( function() {
		var url = window.location.href;
		url = url.split( '?')[0];
		var url = url  + "?filter=" + $(this).val();
		window.location.href = url;
	});	
	
	$('#btnSubmit').click( function() {
		$('#myform').submit();
	});
	
});

//-->
</script>


<table id="tblTools" border="0" cellpadding="4" cellspacing="1" style="width: 100%; font-size:12px;">
	<tr>
		<td style="width:160px"><strong>_{siteLogFilter}</strong>: <select name="filter" id="selectFilter">
			<option value="">_{all}</option>
			<option value="today">_{today}</option>
			<option value="week">_{lastWeek}</option>
			<option value="month">_{lastMonth}</option>
		</select>
		
		</td>
		<td>
		
		<form id="myform" action="#{SearchAction}" method="get">
		<strong style="margin-left: 10px;">_{search}</strong>:
		<select name="queryType" id="qtype">
			<option value="user">_{operator}</option>
			<option value="msg">_{operationInfo}</option>
			<option value="ip">Ip</option>
		</select>&nbsp; 
		<input name="name" id="name" type="text" value="#{s.Name}" />
		<input name="Button1" id="btnSubmit" class="btn btns" type="button" value="_{search}"></form>
		
		</td>

	</tr>
</table>

		<table id="dataAdminList" border="0" cellpadding="2" cellspacing="0" style="width: 100%;">
			<tr class="tableHeader">
				<td style="width:12%">_{created}</td>
				<td style="width:10%">_{operator}</td>
				<td style="width:15%">_{operationInfo}</td>
				<td style="width:33%">_{dataValue}</td>
				<td style="width:20%">_{dataType}</td>
				<td style="width:10%">ip</td>
			</tr>
			<!-- BEGIN list -->
			<tr class="tableItems">
				<td>#{log.Crated}</td>
				<td><a href="#{log.UserLink}" target="_blank">#{log.UserName}</a></td>
				<td>#{log.Message}</td>
				<td>#{log.DataInfo}</td>
				<td>#{log.DataType}</td>
				<td>#{log.Ip}</td>
			</tr>
			<!-- END list -->
		</table>
		<div>#{page}</div>
	</div>
</div>
